package com.zxcz.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zxcz.domain.Firmware;

public interface FirmwareMapper {

	List<Firmware> queryFirmware();

	Firmware fingFirmwareById(int id);

	int insertFirmwareIfNotPath(Firmware firmware);

	int updateFirmwareIfNotPath(Firmware firmware);

	int deleteFirmwareById(int id);

	Firmware findFirmwareByPath(String filePath);

	String getFirmwarePathById(Integer id);
	
	Long getTotal(@Param("userName") String userName);
	
	List<Firmware> queryFirmwareCondition(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize,
			@Param("userName") String userName);

	List<Firmware> findFirmwareLikeUserName(String userName);

	List<Firmware> findFirmwareLikeVersion(String version);
	
}
